﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Fashion.Models;
using System.Web.Mvc;

namespace Fashion.ViewModels
{
    public class CartViewModel
    {
        public List<Product> Products { get; set; }
        public double Total { get; set; }

        public CartViewModel()
        {
        }

        public CartViewModel(Product product)
        {
            this.Products = new List<Product>();
            this.Products.Add(product);
            this.Total = product.Price;
        }
    }
}